permissions
Permission on files/folder(directory):
by using ls -la we can view permissions on file directory, link
- why do we need to understand file/directory permissions in Linux as cybersecurity student?
it helps u understand targets file/folder permissions and it is used for Pen-testing when we need to Read , Write, Execute files on target machine. - By default some executable files are in
read/writemode only we have to change there Rights toExecutethem.
/tmp folder can be used to have full permissions
permissions Types (Chmod)
numeric 2= read 4= write 1=execute
example chmod +337
owner can read and excute 1+2 =3
user group can read and execute 1 + 2 =3
other users can read,write and execute 1+2+4 =7
(337)
character based
write=w execute=x r=Read
example:
chmod +rwx file.txt => owner will have read,write and execute permission